﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucSearch.ascx.cs" Inherits="controls_ucSearch" %>
<table width="190px">
    <tr>
        <td>
            <asp:Label runat="server"  ID="lblSearch" Text=" Cuvant, expresie (poate fi liber)" CssClass="cSearch"></asp:Label>
        </td>
    </tr>
    <tr>
        <td>
            <asp:TextBox runat="server" ID="txtSearch" Width="170px" CssClass="cSearch"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>
           <asp:Label runat="server" ID="lblCategory" Text="Categorie" CssClass="cSearch"></asp:Label>
        </td>    
    </tr>
    <tr>
        <td>
            <asp:DropDownList runat="server" ID="ddlCategory" Width="170px" CssClass="cSearch"></asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td>
              <asp:Label runat="server" ID="lblMaterial" Text="Material" CssClass="cSearch"></asp:Label>
        </td>    
    </tr>
    <tr>
        <td>
            <asp:DropDownList runat="server" ID="ddlMaterial" Width="170px" CssClass="cSearch"></asp:DropDownList>
        </td>    
    </tr>
    <tr>
        <td>
            <table>
               <tr>
                    <td>
                        <asp:Label runat="server" ID="lblminPrice" Text="Pret minim" CssClass="cSearch"></asp:Label>
                    </td>
                    <td>
                        <asp:Label runat="server" ID="lblmaxPrice" Text="Pret maxim" CssClass="cSearch"></asp:Label>
                    </td>
                    <td>
                    
                    </td>
                </tr>
                <tr>
                    <td valign="top">
                        <asp:TextBox runat="server" ID="txtminPrice" Width="40px" CssClass="cSearch" Text="1" MaxLength="7"></asp:TextBox>
                    </td>
                    <td valign="top">
                        <asp:TextBox runat="server" ID="txtmaxPrice" Width="40px" CssClass="cSearch" Text="1" MaxLength="7"></asp:TextBox>  <br />
                    </td>
                    <td valign="middle">
                        <asp:Button runat="server" ID="btnSearch" Text="Cautare" OnClick="btnSearch_Click"  ValidationGroup="search" CssClass="cSearch"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:RegularExpressionValidator runat="server"  ID="rexvtxtminPrice" ControlToValidate="txtminPrice" 
                            ValidationExpression="\d*" ValidationGroup="search" ErrorMessage="Introduceti cifre" Font-Size="XX-Small"
                             ForeColor="DarkRed"  Font-Names="Verdana"></asp:RegularExpressionValidator>
                    </td>
                    <td>         
                         <asp:RegularExpressionValidator runat="server"  ID="rexvtxtmaxPrice" ControlToValidate="txtmaxPrice" 
                             ValidationExpression="\d*" ValidationGroup="search" ErrorMessage="Introduceti cifre" Font-Size="XX-Small"
                             ForeColor="DarkRed"  Font-Names="Verdana"></asp:RegularExpressionValidator>
                    </td>
                    <td>
                    
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>